Skip to content

Conversation

@kumaryash90
Copy link
Member

@kumaryash90 kumaryash90 commented Apr 4, 2025


PR-Codex overview

This PR introduces single-phase functionality for the erc1155 extension in the thirdweb package, enhancing claim conditions and eligibility management. It modifies various components and utility functions to support the new single-phase feature.

Detailed summary

  • Added isMultiphase prop to several components for claim conditions.
  • Updated setClaimPhasesTx to accept isSinglePhase option.
  • Modified ResetClaimEligibility to handle single-phase drops.
  • Enhanced getActiveClaimCondition to support both multi-phase and single-phase.
  • Updated getClaimConditions to retrieve conditions for both phases.
  • Refactored resetClaimEligibility to manage eligibility resets in single-phase scenarios.
  • Adjusted tests to validate new single-phase functionality.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@kumaryash90 kumaryash90 requested review from a team as code owners April 4, 2025 22:21
@vercel
Copy link

vercel bot commented Apr 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 5, 2025 2:32am
login ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 5, 2025 2:32am
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 5, 2025 2:32am
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 5, 2025 2:32am
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 5, 2025 2:32am

@changeset-bot
Copy link

changeset-bot bot commented Apr 4, 2025

🦋 Changeset detected

Latest commit: 59be4ea

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
thirdweb Patch
@thirdweb-dev/wagmi-adapter Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@graphite-app
Copy link
Contributor

graphite-app bot commented Apr 4, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@github-actions github-actions bot added Dashboard Involves changes to the Dashboard. packages SDK Involves changes to the thirdweb SDK labels Apr 4, 2025
@kumaryash90 kumaryash90 added the DO NOT MERGE This pull request is still in progress and is not ready to be merged. label Apr 4, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Apr 4, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 47.57 KB (0%) 952 ms (0%) 133 ms (+139.29% 🔺) 1.1 s
thirdweb (cjs) 129.95 KB (0%) 2.6 s (0%) 195 ms (+17.09% 🔺) 2.8 s
thirdweb (minimal + tree-shaking) 5.62 KB (0%) 113 ms (0%) 59 ms (+1068.6% 🔺) 171 ms
thirdweb/chains (tree-shaking) 514 B (0%) 11 ms (0%) 27 ms (+1074.26% 🔺) 37 ms
thirdweb/react (minimal + tree-shaking) 19.37 KB (0%) 388 ms (0%) 84 ms (+670.93% 🔺) 472 ms

@codecov
Copy link

codecov bot commented Apr 4, 2025

Codecov Report

Attention: Patch coverage is 89.51613% with 13 lines in your changes missing coverage. Please review.

Project coverage is 55.05%. Comparing base (9c737a1) to head (59be4ea).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...xtensions/erc1155/drops/read/getClaimConditions.ts 89.36% 5 Missing ⚠️
...ions/erc1155/drops/read/getActiveClaimCondition.ts 88.88% 4 Missing ⚠️
...sions/erc1155/drops/write/resetClaimEligibility.ts 90.24% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6655      +/-   ##
==========================================
+ Coverage   54.97%   55.05%   +0.07%     
==========================================
  Files         889      889              
  Lines       55768    55858      +90     
  Branches     3815     3822       +7     
==========================================
+ Hits        30661    30751      +90     
  Misses      25012    25012              
  Partials       95       95              
Flag Coverage Δ
packages 55.05% <89.51%> (+0.07%) ⬆️
Files with missing lines Coverage Δ
...web/src/utils/extensions/drops/get-claim-params.ts 91.30% <ø> (-0.57%) ⬇️
...ions/erc1155/drops/read/getActiveClaimCondition.ts 80.00% <88.88%> (+27.36%) ⬆️
...sions/erc1155/drops/write/resetClaimEligibility.ts 89.83% <90.24%> (+8.01%) ⬆️
...xtensions/erc1155/drops/read/getClaimConditions.ts 85.96% <89.36%> (+11.89%) ⬆️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member Author

kumaryash90 commented Apr 5, 2025

Merge activity

<!--

## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes"

If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000):

## Notes for the reviewer

Anything important to call out? Be sure to also clarify these in your comments.

## How to test

Unit tests, playground, etc.

-->

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on adding single phase functionality for `erc1155` claim conditions in the `thirdweb` dashboard and related utilities, enhancing the ability to manage claim eligibility and conditions for tokens.

### Detailed summary
- Introduced `isMultiphase` and `isSinglePhase` properties in various components.
- Updated `setClaimPhasesTx` to handle single phase options.
- Modified `getClaimConditions` to support both multi-phase and single-phase claims.
- Enhanced `resetClaimEligibility` to work with single phase drops.
- Updated tests to validate new single phase functionality.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dashboard Involves changes to the Dashboard. packages SDK Involves changes to the thirdweb SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants